<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/system/financialcategoryfolder/FinancialCategory.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/system/financialcategoryfolder/FinancialCategory.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'FinancialCategoryId',
                footer: "Foots",
                cnName: '财务类别',
                name: 'financialcategoryfolder/FinancialCategory',
                url: "/FinancialCategory/",
                sortName: "FinancialCategoryId"
            });
            const editFormFields = ref({"FinancialCategoryId":"","CategoryName":"","Remark":""});
            const editFormOptions = ref([[{"title":"财务类别编号","required":true,"field":"FinancialCategoryId","disabled":true}],
                              [{"title":"类别名称","field":"CategoryName","type":"text"}],
                              [{"title":"备注","field":"Remark"}]]);
            const searchFormFields = ref({"CategoryName":""});
            const searchFormOptions = ref([[{"title":"类别名称","field":"CategoryName","type":"like"}]]);
            const columns = ref([{field:'FinancialCategoryId',title:'财务类别编号',type:'string',sort:true,width:220,readonly:true,require:true,align:'left',sort:true},
                       {field:'CategoryName',title:'类别名称',type:'string',width:110,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'date',width:150,align:'left',sort:true},
                       {field:'IsDeleted',title:'是否删除',type:'sbyte',width:110,hidden:true,align:'left'},
                       {field:'Remark',title:'备注',type:'string',width:120,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
